package com.netposa.datawarehouse.aggregator.web.ext;

public class PvmRole {
   private String id;
   private String name;
   private Integer type;
   private String comment;
   private String code;

   public String getId() {
      return this.id;
   }

   public String getName() {
      return this.name;
   }

   public Integer getType() {
      return this.type;
   }

   public String getComment() {
      return this.comment;
   }

   public String getCode() {
      return this.code;
   }

   public void setId(String id) {
      this.id = id;
   }

   public void setName(String name) {
      this.name = name;
   }

   public void setType(Integer type) {
      this.type = type;
   }

   public void setComment(String comment) {
      this.comment = comment;
   }

   public void setCode(String code) {
      this.code = code;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof PvmRole)) {
         return false;
      } else {
         PvmRole other = (PvmRole)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label71: {
               Object this$id = this.getId();
               Object other$id = other.getId();
               if (this$id == null) {
                  if (other$id == null) {
                     break label71;
                  }
               } else if (this$id.equals(other$id)) {
                  break label71;
               }

               return false;
            }

            Object this$name = this.getName();
            Object other$name = other.getName();
            if (this$name == null) {
               if (other$name != null) {
                  return false;
               }
            } else if (!this$name.equals(other$name)) {
               return false;
            }

            label57: {
               Object this$type = this.getType();
               Object other$type = other.getType();
               if (this$type == null) {
                  if (other$type == null) {
                     break label57;
                  }
               } else if (this$type.equals(other$type)) {
                  break label57;
               }

               return false;
            }

            Object this$comment = this.getComment();
            Object other$comment = other.getComment();
            if (this$comment == null) {
               if (other$comment != null) {
                  return false;
               }
            } else if (!this$comment.equals(other$comment)) {
               return false;
            }

            Object this$code = this.getCode();
            Object other$code = other.getCode();
            if (this$code == null) {
               if (other$code == null) {
                  return true;
               }
            } else if (this$code.equals(other$code)) {
               return true;
            }

            return false;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof PvmRole;
   }

   public int hashCode() {
      
      int result = 1;
      Object $id = this.getId();
      result = result * 59 + ($id == null ? 43 : $id.hashCode());
      Object $name = this.getName();
      result = result * 59 + ($name == null ? 43 : $name.hashCode());
      Object $type = this.getType();
      result = result * 59 + ($type == null ? 43 : $type.hashCode());
      Object $comment = this.getComment();
      result = result * 59 + ($comment == null ? 43 : $comment.hashCode());
      Object $code = this.getCode();
      result = result * 59 + ($code == null ? 43 : $code.hashCode());
      return result;
   }

   public String toString() {
      return "PvmRole(id=" + this.getId() + ", name=" + this.getName() + ", type=" + this.getType() + ", comment=" + this.getComment() + ", code=" + this.getCode() + ")";
   }
}
